package com.sjft.cloud.commons.support.datamodel.core.prop;

import com.sjft.cloud.commons.support.datamodel.core.rule.EditorRule;
import com.sjft.cloud.commons.support.datamodel.core.value.EditorValue;
import com.sjft.cloud.commons.support.datamodel.enums.ModelFieldTypeEnum;
import com.sjft.cloud.commons.support.datamodel.enums.MysqlColumnTypeEnum;
import com.sjft.cloud.commons.support.datamodel.core.ModelFieldProp;
import lombok.Getter;
import lombok.Setter;

/**
 * Editor
 *
 * @author Jin
 */
@Getter
@Setter
public class EditorProp implements ModelFieldProp<EditorRule, EditorValue> {
    private String name = ModelFieldTypeEnum.EDITOR_NAME;
    private String columnType = MysqlColumnTypeEnum.TEXT.getCode();
    private Integer length = 0;
    private Boolean autoIncrement = false;
    private String defaultValue = "";
    private Boolean notNull = false;
    private Boolean primaryKey = false;

    private EditorRule rule = new EditorRule();
    private EditorValue value = new EditorValue();

}
